﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace Payment.Models
{
    public class SampleData : DropCreateDatabaseIfModelChanges<PaymentEntities>
    {
        protected override void Seed(PaymentEntities context)
        {
            new List<Client>
            {
                new Client{ Name = "Bruce Yang", StartDate = new DateTime(2013,3,10), FinishDate= new DateTime(2013,3,10),
                    NextPaymentDate= new DateTime(2013,3,10),PaymentPeriod=1,CardNumber="1234",ExpireDate=new DateTime(2013,3,10),
                PurchaseAmount= 100m},
            }.ForEach(c => context.Clients.Add(c));
        }
    }
}